package xyz.xtt.user.utils;

public class UserIdEncryptionUtil {

	// 最简单偏移量伪装id
	private static final Long OFFSET = Long.MAX_VALUE;

	public static String encrypt(Long number) {
		return String.valueOf(number + OFFSET).substring(1);
	}

	public static String decrypt(Long data) {
		long number = Long.parseLong("-" + data);
		return String.valueOf(number - OFFSET);
	}
}
